package com.pgytesting.secondhandcar.model;

import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author : frosty0804@gmail.com
 * @version : v1.0
 * @projectName : secondhandcar
 * @className : Pagination
 * @description : TODO(分页父类)
 * @date : 2019/8/20 15:42
 */
@Data
public class Pagination {
    /**
     * 页码
     */
    @NotNull(message = "页码不能为空")
    private int offset;
    /**
     * 每页数量
     */
    @NotNull(message = "每页数量不能为空")
    private int limit;
}
